package com.soft3.yxq.generator.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author yxq
 * @since 2024-12-20
 */
@ApiModel(value = "Review对象", description = "评论表")
public class Review implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "review_id", type = IdType.AUTO)
    private Integer reviewId;

    @ApiModelProperty("内容")
    private String reviewContent;

    @ApiModelProperty("创建日期")
    private LocalDateTime reviewCreatedate;

    @ApiModelProperty("关联用户id")
    private Integer reviewUserId;

    @ApiModelProperty("关联产品id")
    private Integer reviewProductId;

    @ApiModelProperty("关联订单详细id")
    private Integer reviewOrderitemId;

    public Integer getReviewId() {
        return reviewId;
    }

    public void setReviewId(Integer reviewId) {
        this.reviewId = reviewId;
    }

    public String getReviewContent() {
        return reviewContent;
    }

    public void setReviewContent(String reviewContent) {
        this.reviewContent = reviewContent;
    }

    public LocalDateTime getReviewCreatedate() {
        return reviewCreatedate;
    }

    public void setReviewCreatedate(LocalDateTime reviewCreatedate) {
        this.reviewCreatedate = reviewCreatedate;
    }

    public Integer getReviewUserId() {
        return reviewUserId;
    }

    public void setReviewUserId(Integer reviewUserId) {
        this.reviewUserId = reviewUserId;
    }

    public Integer getReviewProductId() {
        return reviewProductId;
    }

    public void setReviewProductId(Integer reviewProductId) {
        this.reviewProductId = reviewProductId;
    }

    public Integer getReviewOrderitemId() {
        return reviewOrderitemId;
    }

    public void setReviewOrderitemId(Integer reviewOrderitemId) {
        this.reviewOrderitemId = reviewOrderitemId;
    }

    @Override
    public String toString() {
        return "Review{" +
            "reviewId = " + reviewId +
            ", reviewContent = " + reviewContent +
            ", reviewCreatedate = " + reviewCreatedate +
            ", reviewUserId = " + reviewUserId +
            ", reviewProductId = " + reviewProductId +
            ", reviewOrderitemId = " + reviewOrderitemId +
        "}";
    }
}
